function randomNum(maxNum, minNum, decimalNum) {
  var max = 0, min = 0;
  minNum <= maxNum ? (min = minNum, max = maxNum) : (min = maxNum, max = minNum);
  switch (arguments.length) {
    case 1:
      return Math.floor(Math.random() * (max + 1));
      break;
    case 2:
      return Math.floor(Math.random() * (max - min + 1) + min);
      break;
    case 3:
      return (Math.random() * (max - min) + min).toFixed(decimalNum);
      break;
    default:
      return Math.random();
      break;
  }
}




let arr = []
for (var k = 0; k < 60; k++) {
  let t = randomNum(14.5, 15.6, 2);
  let t1 = randomNum(5.1, 8.6, 2);  // 1
  arr.push(
    [t, t1, '4']
  )
}
console.log(arr)




